package Lab03.Question6;

import java.util.Scanner;

public class Palindromic {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        boolean isNum = true;
        boolean isFirstZero = false;
        boolean isPalindrom = true;
        boolean isEnd=false;
        char line[] = in.nextLine().toCharArray();
        int len = line.length;
        for (int i = 0; i < len; i++) {
            if (line[i] < '0' || line[i] > '9') {
                isNum = false;
                break;
            }
            if (i == 0 && line[i] == '0' && len != 1)
                isFirstZero = true;
            if(!isEnd&&line[len-i-1] == '0'){
                break;
            }else{
                isEnd = true;
            }
            if (line[i] != line[len - i - 1] && i <= len / 2)
                isPalindrom = false;
        }
        if (!isNum)
            System.out.println("不是没有前导0的无符号整数！(有空格)");
        else if (isFirstZero)
            System.out.println("是有前导0的无符号整数！");
        else if (!isPalindrom)
            System.out.println("是没有前导0的无符号整数！");
        else
            System.out.println("是回文数！");
    }
}

